package com.eduran.tuts.jfundamentals.main;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;

/**
 * Created by eduran on 19.09.2014.
 */
public class Main extends Application{
    @Override
    public void start(Stage primaryStage) throws Exception {
        Parent root = FXMLLoader.load(getClass().getClassLoader().getResource("fxml/jfundamentals.fxml"));
        primaryStage.getIcons().add(new Image("images/bean.png"));
        primaryStage.setTitle("Java Fundamentals");
        Scene scene = new Scene(root, 800, 480);
        primaryStage.setScene(scene);
        primaryStage.setMinWidth(640);
        primaryStage.setMinHeight(300);
        primaryStage.show();
    }

    public static void main(String[] args) {
        launch(args);
    }
}
